package ch.zhaw.swp1.view.panels.compose;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

import ch.zhaw.swp1.model.message.MessageType;

/**
 * Compose panel for Email-Messages
 * @author Martin Trutmann
 */
public class PrintComposePanel extends GenericComposePanel {

	/**
	 * Default version
	 */
	private static final long serialVersionUID = 1L;

	/************************************************************************************/
	// Constructors
	/*----------------------------------------------------------------------------------*/
	/**
	 * Default Constructor
	 */
	public PrintComposePanel(){
		super();
		init();
		layoutComponents();
	}
	
	/************************************************************************************/
	// Methods
	/*----------------------------------------------------------------------------------*/
	private void init() {
		setLayout(new BorderLayout());
	}
	
	/**
	 * Lay out components on screen
	 */
	private void layoutComponents() {
		messageTextArea = new JTextArea(10,72);
		add(new JScrollPane(messageTextArea), BorderLayout.CENTER);
		
		JPanel smsStatsPanel = new JPanel(new FlowLayout());
		add(smsStatsPanel, BorderLayout.SOUTH);
	}
	
	/**
	 * Reset fields
	 */
	@Override
	public void reset() {
		messageTextArea.setText("");
		
	}

	/************************************************************************************/
	// Getter/Setter
	/*----------------------------------------------------------------------------------*/
	@Override
	public MessageType getMessageType() {
		return MessageType.PRINT;
	}

}
